<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcss.com/vue/2.5.17-beta.0/vue.min.js"></script>
    <script src="../node_modules/lodash/lodash.js"></script>
</head>
<body>
<div id="hd">
    <form action="" @submit.prevent.once="post(hd)">
        <input type="text">
        <input type="submit" value="提交">
    </form>
</div>
<script>
    var app=new Vue({
        el:'#hd',
        data:{

        },
        methods:{
            post(num){
                console.log(num);
            }
        }
    })
</script>
</body>
</html>